This folder contains all of the data and code necessary to replicate all analyses, figures, and tables in 
"Democratic Peace and the Wisdom of Crowds"

The main files are:
woc2-analysis-final.csv
This is the raw data from the main experiment reported in our paper

replication_code_democratic_peace_wisdom_of_crowds.R 
This is the code for all simulations and figures reported in the manuscript.

The simulations take a long time to run. We therefore recorded the simulation results used to create Figure 1 in the main manuscript in the following two files:
sim_results.bargaining.success.csv
sim_results.earnings.csv

We examined how accurately subjects could guess the minimum acceptable offer of responders. This is reported in Supplementary Information Appendix Figure A3. The data for this figure is is based on code executed in replication_code_democratic_peace_wisdom_of_crowds.R and stored in belief.accuracy.csv 

We also simulated outcomes for some groups sizes that were not present in our original experiment, as shown in Supplementary Information Appendix Figure A1. The results of those simulations are in interpoltated_sims.bargaining.success.csv

Data for elite bargaining (used in Figure 2 of the main manuscript) comes from
LeVeck, Brad L et al. 2014. “The Role of Self-Interest in Elite Bargaining.” Proceedings of the National Academy of Sciences of the United States of America 111(52): 18536–41.

The file containing this data is:
pnas.elite.turk.data.csv

In the Supplementary Information Appendix Figure A2 panel B, we also examine the relationship between what offers and demands in the Ultimum game. This data comes from LeVeck, Brad L et al. 2014. As this experiment had players play the Ultimatum Game twice, once in each role (Proposer, Responder).
The data for that analysis is in:
elite.ug.csv

We also report data from polity and political constraint indices, shown in Supplementary Information Appendix Table A6. This data is in :
polity4.csv
polcon2012.csv



